package classPractice;

public class StringTest {
    public static void main(String[] args) {
        byte[] byt1 = {'1','2','3'};
        String str1 = new String(byt1);
        System.out.println("String:"+str1);

        System.out.println(str1.compareTo("321"));
        System.out.println(str1.compareToIgnoreCase("123"));
        str1 = str1.concat("      123123     123 12 312 3 12        ");
        String str2 = str1.trim();
        System.out.println(str2+"sdfsdfdsf");
        System.out.println(str1.concat("4343434"));

        System.out.println(str1.contains("1"));
    }
}
